//
//  Common.h
//  Root
//
//  Created by conkey on 2019/1/8.
//  Copyright © 2019 Root. All rights reserved.
//

#ifndef Common_h
#define Common_h

#define debugLog(...) NSLog(__VA_ARGS__)
#define debugMethod(...) NSLog((@"In %s,%s [Line %d] "), __PRETTY_FUNCTION__,__FILE__,__LINE__,##__VA_ARGS__)

#define JPush_AppKey @"df2b43c8bb5068125219d837" //极光推送
#define JPush_MasterSecret @"658dee34461f2a5af4b7b377"

#define Leancloud_APPID @"XGYIkMbD2YPTLo5MUrNpu6WL-gzGzoHsz" //Leancloud服务器
#define Leancloud_APPKEY @"829QUsYML2MS5HUQFm4j7nX2"

//改变颜色值
#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]

#ifndef QISMainColor_Blue
#define QISMainColor_Blue [UIColor colorWithRed:48.0/255.0 green:134.0/255.0 blue:242.0/255.0 alpha:1.0]
#endif

#ifndef YYKTableViewSeparatorColor
#define YYKTableViewSeparatorColor [UIColor colorWithRed:246.0/255.0 green:248.0/255.0 blue:252.0/255.0 alpha:1.0]
#endif

#ifndef UIColorFromRGB
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 \
alpha:1.0]
#endif

//weak strong  self
#define __WEAKSELF(X)    __weak typeof(X) weakSelf  = X;
#define __STRONGSELF(X)  __strong typeof(X) strongSelf  = X;

#define QISNotConnectedToInternetTip  @"网络无法连接或未允许应用使用数据"

#endif /* Common_h */
